package com.itheima.home_work.test_7;

import java.util.ArrayList;
import java.util.HashMap;

public class Test {
    public static void main(String[] args) {
        // 一班
        HashMap classOne = new HashMap<Integer, Student>();
        classOne.put(1, new Student(1, "小明", 54));
        classOne.put(2, new Student(2, "老王", 12));
        classOne.put(3, new Student(3, "小明", 64));
        classOne.put(4, new Student(4, "小鬼", 16));

        // 二班
        HashMap classTwo = new HashMap<Integer, Student>();
        classOne.put(5, new Student(5, "timor", 67));
        classOne.put(6, new Student(6, "faker", 4));
        classOne.put(7, new Student(7, "虚空", 12));
        classOne.put(8, new Student(8, "小跑", 17));

        // 三班
        HashMap classThree = new HashMap<Integer, Student>();
        classOne.put(9, new Student(9, "德邦", 54));
        classOne.put(10, new Student(10, "锤石", 12));

        // 年级
        ArrayList<HashMap<Integer, Student>> grade = new ArrayList<>();
        grade.add(classOne);
        grade.add(classTwo);
        grade.add(classThree);

        System.out.println(grade);


    }
}
